import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入element 图标资源
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//element图标资源需要循环遍历，放入到app中
//先把使用的app单独定义出来
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus).use(store).use(router).mount('#app')
